package com.itheima.web.manager;

import com.itheima.domain.vo.AnalysisSummaryVo;
import com.itheima.service.db.AnalysisByDayService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;

@Service
public class AnalysisManager {

    @Reference
    private AnalysisByDayService analysisByDayService;

    public ResponseEntity summary() {
        // 调用rpc查询
        AnalysisSummaryVo analysisSummaryVo = analysisByDayService.findAnalysisSummaryVo();
        return ResponseEntity.ok(analysisSummaryVo);
    }
}
